package com.uplooking.util;

import java.io.UnsupportedEncodingException;

import com.uplooking.constant.SysConstants;

public class EncodeUtils {
	
	public static String isoToUTF(String info) {
		try {
			return new String(info.getBytes(SysConstants.ENCODINGDEFAULT),
					SysConstants.ENCODING);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public static String utfToISO(String info) {
		try {
			return new String(info.getBytes(SysConstants.ENCODING),
					SysConstants.ENCODINGDEFAULT);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}
}
